package com.castle.fortress.admin.study.course.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.study.course.entity.StudyCourseChapterEntity;
import java.util.Map;
import java.util.List;
/**
 * 课程章节表Mapper 接口
 *
 * @author castle
 * @since 2023-01-31
 */
public interface StudyCourseChapterMapper extends BaseMapper<StudyCourseChapterEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param studyCourseChapterEntity
    * @return
    */
    List<StudyCourseChapterEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("studyCourseChapterEntity") StudyCourseChapterEntity studyCourseChapterEntity);

    /**
    * 扩展信息记录总数
    * @param studyCourseChapterEntity
    * @return
    */
    Long extendsCount(@Param("studyCourseChapterEntity") StudyCourseChapterEntity studyCourseChapterEntity);

    /**
    * 课程章节表扩展详情
    * @param id 课程章节表id
    * @return
    */
    StudyCourseChapterEntity getByIdExtends(@Param("id")Long id);


    void delByCourseId(@Param("courseId")Long courseId);

    void delByCourseIds(@Param("ids") List<Long> courseIds);
}
